package com.zf.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 公寓和房间关系对象 flats_room
 *
 * @author rxf
 * @date 2024-10-02
 */
@TableName(resultMap = "com.zf.apartment.mapper.FlatsRoomMapper.FlatsRoomResult")
public class FlatsRoom extends BaseEntity
        {
private static final long serialVersionUID = 1L;

        /** 公寓ID */
        private Long flatsId;

        /** 房间ID */
            @TableId(value = "room_id",type = IdType.AUTO)
        private Long roomId;

        public void setFlatsId(Long flatsId)
        {
            this.flatsId = flatsId;
        }

        public Long getFlatsId()
        {
            return flatsId;
        }
        public void setRoomId(Long roomId)
        {
            this.roomId = roomId;
        }

        public Long getRoomId()
        {
            return roomId;
        }

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("flatsId", getFlatsId())
        .append("roomId", getRoomId())
            .toString();
}
        }